package com.itheima.exerciseTest.method01_09.method2;

public class ProjectManager extends Staff {
    private double bonus;

    public ProjectManager() {
    }

    public ProjectManager(double bonus) {
        this.bonus = bonus;
    }

    public ProjectManager(String name, String id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("工号为" + this.getId() + "的" + this.getName() + "经理" + "的工资为" + this.getSalary());
        System.out.println("检查下属工作");
    }
}
